package com.gph.saviorframework.es.core.facet;

import org.springframework.util.Assert;

@Deprecated
public class AbstractFacetResult implements FacetResult {

	private final String name;
	private final FacetType type;

	protected AbstractFacetResult(String name, FacetType type) {
		Assert.hasText(name, "Facet name can't be null and should have a value");
		this.name = name;
		this.type = type;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public FacetType getType() {
		return type;
	}
}
